NodeChildren

A range to iterate over the node children.

A TreeCursor is used to retrieve the children efficiently. Obtain a TreeCursor by calling [Tree::walk] or [Node::walk]. To avoid unnecessary allocations, you should reuse the same cursor for subsequent calls to this method.

If you're walking the tree recursively, you may want to use the TreeCursor APIs directly instead.

Constructors

this
this(Node parent, TreeCursor* cursor)

create a NodeChildren for the given node and cursor

Members

Functions

empty
auto empty()

Is it the end?

front
auto front()

Get the current child

popFront
void popFront()

go to the next child

Meta